home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / NET / IPIP.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  793b  |  34 lines

  1. #ifndef __NET_IPIP_H
  2. #define __NET_IPIP_H 1
  3.  
  4. #include <linux/if_tunnel.h>
  5.  
  6. /* Keep error state on tunnel for 30 sec */
  7. #define IPTUNNEL_ERR_TIMEO    (30*HZ)
  8.  
  9. struct ip_tunnel
  10. {
  11.     struct ip_tunnel    *next;
  12.     struct device        *dev;
  13.     struct net_device_stats    stat;
  14.  
  15.     int            recursion;    /* Depth of hard_start_xmit recursion */
  16.     int            err_count;    /* Number of arrived ICMP errors */
  17.     unsigned long        err_time;    /* Time when the last ICMP error arrived */
  18.  
  19.     /* These four fields used only by GRE */
  20.     __u32            i_seqno;    /* The last seen seqno    */
  21.     __u32            o_seqno;    /* The last output seqno */
  22.     int            hlen;        /* Precalculated GRE header length */
  23.     int            mlink;
  24.  
  25.     struct ip_tunnel_parm    parms;
  26. };
  27.  
  28. extern int    ipip_init(void);
  29. extern int    ipgre_init(void);
  30. extern int    sit_init(void);
  31. extern void    sit_cleanup(void);
  32.  
  33. #endif
  34.